package com.victualler.business.purchase.service;

import com.victualler.business.purchase.dto.PurchaseOrderInfoDto;
import com.victualler.business.purchase.entity.PurchaseOrderDao;
import com.victualler.business.purchase.repository.PurchaseOrderQueryRepository;
import com.victualler.business.purchase.repository.PurchaseOrderRepository;
import com.victualler.core.base.service.BaseService;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @author: Guoshichang
 * @discription:
 */
public interface PurchaseOrderService extends BaseService<PurchaseOrderDao, PurchaseOrderRepository,PurchaseOrderQueryRepository>{

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param id 预订单id
     * @Function  根据条件入参prePurchaseRequestDto动态分页查询权限
     */
    public PurchaseOrderInfoDto findInfo(@PathVariable("id") Long id);

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param purchaseOrderInfoDto 预订单实体大对象
     * @Function  保存预订单实体大对象
     */
    public void saveInfo(PurchaseOrderInfoDto purchaseOrderInfoDto);
}
